Assignemnt #101 and 101st program
Code
///Name: Derrick Andreasen
///Period: 7
///Program name: 101st Program
///File name: Hund1prog.java
///Date Finished:3/25/2016
import java.util.Scanner;
public class Hund1prog
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner (System.in);
int choice;
System.out.println( "Ye Old Keychain Shoppe" );
System.out.println();
do
{
System.out.println( "1. Add keychains to order\n2. Remove keychains from order\n3. View current order\n4. Checkout" );
System.out.print( "Please enter your choice: " );
choice = keyboard.nextInt();
System.out.println();
if(choice == 1)
{
addKeychains();
}
else if(choice == 2)
{
removeKeychains();
}
else if(choice == 3)
{
viewOrder();
}
else
{
checkout();
}
}while (choice != 4);
}
public static void addKeychains()
{
String x = "ADD KEYCHAINS" ;
System.out.println( x );
}
public static void removeKeychains()
{
String x = "REMOVE KEYCHAINS" ;
System.out.println( x );
}
public static void viewOrder()
{
String x = "VIEW ORDER" ;
System.out.println( x );
}
public static void checkout()
{
String x = "CHECKOUT" ;
System.out.println( x );
}
}
Picture of the output